<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      MuPDF-1.16.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;50.&nbsp;PostScript
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="fop.html" title="fop-2.4">Prev</a>
          <p>
            fop-2.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="paps.html" title="paps-0.7.1">Next</a>
          <p>
            paps-0.7.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="ps.html" title=
          "Chapter&nbsp;50.&nbsp;PostScript">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="mupdf" name="mupdf"></a>MuPDF-1.16.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to MuPDF
        </h2>
        <p>
          <span class="application">MuPDF</span> is a lightweight PDF and XPS
          viewer.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.mupdf.com/downloads/archive/mupdf-1.16.1-source.tar.gz">
                http://www.mupdf.com/downloads/archive/mupdf-1.16.1-source.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: fe6ef7a800d4283c6ca14b22e0e7f748
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 58 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 238 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU (Using parallelism=4)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Recommended patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/svn/mupdf-1.16.1-shared_libs-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/svn/mupdf-1.16.1-shared_libs-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          MuPDF Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../x/x7lib.html" title="Xorg Libraries">Xorg
          Libraries</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../x/freeglut.html" title=
          "Freeglut-3.2.1">Freeglut-3.2.1</a>, <a class="xref" href=
          "../general/harfbuzz.html" title=
          "HarfBuzz-2.6.4">HarfBuzz-2.6.4</a>, <a class="xref" href=
          "../general/libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="../general/openjpeg2.html" title=
          "OpenJPEG-2.3.1">OpenJPEG-2.3.1</a>, and <a class="xref" href=
          "../basicnet/curl.html" title="cURL-7.69.1">cURL-7.69.1</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../xsoft/xdg-utils.html" title=
          "xdg-utils-1.1.3">xdg-utils-1.1.3</a> (runtime), <a class="ulink"
          href="https://jbig2dec.com">jbig2dec</a>, and <a class="ulink"
          href="https://artifex.com/mujs/">MuJS</a>
        </p>
        <h4>
          Required (runtime)
        </h4>
        <p class="required">
          <a class="xref" href="../x/installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">X Window
          System</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/mupdf">http://wiki.linuxfromscratch.org/blfs/wiki/mupdf</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of MuPDF
        </h2>
        <p>
          Install <span class="application">MuPDF</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../mupdf-1.16.1-shared_libs-1.patch &amp;&amp;

USE_SYSTEM_LIBS=yes make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">USE_SYSTEM_LIBS=yes                     \
make prefix=/usr                        \
     build=release                      \
     docdir=/usr/share/doc/mupdf-1.16.1 \
     install                            &amp;&amp;

ln -sfv mupdf-x11 /usr/bin/mupdf        &amp;&amp;
ldconfig</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>ln -sfv mupdf-x11
          /usr/bin/mupdf</strong></span> : This symbolic link chooses between
          <span class="command"><strong>mupdf-gl</strong></span> and
          <span class="command"><strong>mupdf-x11</strong></span> when
          running <span class="command"><strong>mupdf</strong></span>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">mupdf(symlink), mupdf-gl, mupdf-x11, and
              mutool</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libmupdf.so, libmupdfthird.so,
              libmupkcs7.so, and libmuthreads.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/mupdf,
              /usr/share/doc/mupdf-1.16.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="mupdf-prog" name="mupdf-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>mupdf</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program for viewing PDF, XPS, EPUB, and CBZ
                    documents, and various image formats such as PNG, JPEG,
                    GIFF, and TIFF.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mupdf-gl" name="mupdf-gl"></a><span class=
                    "term"><span class=
                    "command"><strong>mupdf-gl</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    same as <span class=
                    "command"><strong>mupdf</strong></span>, using an opengl
                    renderer.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mupdf-x11" name="mupdf-x11"></a><span class=
                    "term"><span class=
                    "command"><strong>mupdf-x11</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    same as <span class=
                    "command"><strong>mupdf</strong></span>, using an X
                    Window renderer.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mutool" name="mutool"></a><span class=
                    "term"><span class=
                    "command"><strong>mutool</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program to perform various operations on PDF files,
                    such as merging and cleaning PDF documents.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libmupdf" name="libmupdf"></a><span class=
                    "term"><code class="filename">libmupdf.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the mupdf API functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libmupdfthird" name=
                    "libmupdfthird"></a><span class="term"><code class=
                    "filename">libmupdfthird.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the third party libraries compiled for mudpf.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-19 18:31:22 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="fop.html" title="fop-2.4">Prev</a>
          <p>
            fop-2.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="paps.html" title="paps-0.7.1">Next</a>
          <p>
            paps-0.7.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="ps.html" title=
          "Chapter&nbsp;50.&nbsp;PostScript">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
